package br.upe.portlet.estagio.service;


/**
 * <a href="EstagioLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class provides static methods for the
 * <code>br.upe.portlet.estagio.service.EstagioLocalService</code>
 * bean. The static methods of this class calls the same methods of the bean
 * instance. It's convenient to be able to just write one line to call a method
 * on a bean instead of writing a lookup call and a method call.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see br.upe.portlet.estagio.service.EstagioLocalService
 *
 */
public class EstagioLocalServiceUtil {
    private static EstagioLocalService _service;

    public static br.upe.portlet.estagio.model.Estagio addEstagio(
        br.upe.portlet.estagio.model.Estagio estagio)
        throws com.liferay.portal.SystemException {
        return getService().addEstagio(estagio);
    }

    public static br.upe.portlet.estagio.model.Estagio createEstagio(
        long codigo) {
        return getService().createEstagio(codigo);
    }

    public static void deleteEstagio(long codigo)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        getService().deleteEstagio(codigo);
    }

    public static void deleteEstagio(
        br.upe.portlet.estagio.model.Estagio estagio)
        throws com.liferay.portal.SystemException {
        getService().deleteEstagio(estagio);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
        throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
        int end) throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery, start, end);
    }

    public static br.upe.portlet.estagio.model.Estagio getEstagio(long codigo)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService().getEstagio(codigo);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Estagio> getEstagios(
        int start, int end) throws com.liferay.portal.SystemException {
        return getService().getEstagios(start, end);
    }

    public static int getEstagiosCount()
        throws com.liferay.portal.SystemException {
        return getService().getEstagiosCount();
    }

    public static br.upe.portlet.estagio.model.Estagio updateEstagio(
        br.upe.portlet.estagio.model.Estagio estagio)
        throws com.liferay.portal.SystemException {
        return getService().updateEstagio(estagio);
    }

    public static br.upe.portlet.estagio.model.Estagio addEstagio(
        java.lang.String titulo, java.util.Date fim, java.util.Date inicio,
        java.lang.String matriculaAluno, java.lang.String matriculaCoordenador,
        long userId, long companyId, java.util.Date createDate)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService()
                   .addEstagio(titulo, fim, inicio, matriculaAluno,
            matriculaCoordenador, userId, companyId, createDate);
    }

    public static br.upe.portlet.estagio.model.Estagio updateEstagio(
        long codigoEstagio, java.lang.String titulo, java.util.Date fim,
        java.util.Date inicio, java.lang.String matriculaAluno,
        java.lang.String matriculaProfessor, long userId, long companyId,
        java.util.Date createDate)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService()
                   .updateEstagio(codigoEstagio, titulo, fim, inicio,
            matriculaAluno, matriculaProfessor, userId, companyId, createDate);
    }

    public static boolean existsAnyCurrentEstagioByAlunoMatricula(
        java.lang.String alunoMatricula)
        throws com.liferay.portal.SystemException {
        return getService()
                   .existsAnyCurrentEstagioByAlunoMatricula(alunoMatricula);
    }

    public static br.upe.portlet.estagio.model.Estagio getCurrentEstagioByAlunoMatricula(
        java.lang.String alunoMatricula)
        throws br.upe.portlet.estagio.AlunoSemEstagioEmAndamentoException,
            com.liferay.portal.SystemException {
        return getService().getCurrentEstagioByAlunoMatricula(alunoMatricula);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Estagio> getEstagiosByAlunoMatricula(
        java.lang.String alunoMatricula)
        throws com.liferay.portal.SystemException {
        return getService().getEstagiosByAlunoMatricula(alunoMatricula);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Estagio> getOngoingEstagiosByProfessor(
        br.upe.portlet.estagio.model.Professor professor)
        throws com.liferay.portal.SystemException {
        return getService().getOngoingEstagiosByProfessor(professor);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Estagio> getEstagiosByProfessor(
        br.upe.portlet.estagio.model.Professor professor)
        throws com.liferay.portal.SystemException {
        return getService().getEstagiosByProfessor(professor);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Estagio> getEstagiosByProfessorMatricula(
        java.lang.String professorMatricula)
        throws com.liferay.portal.SystemException {
        return getService().getEstagiosByProfessorMatricula(professorMatricula);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Estagio> getEstagiosByProfessorMatricula(
        java.lang.String professorMatricula, boolean somenteEmAndamento)
        throws com.liferay.portal.SystemException {
        return getService()
                   .getEstagiosByProfessorMatricula(professorMatricula,
            somenteEmAndamento);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Estagio> getOngoingEstagiosByProfessorMatricula(
        java.lang.String professorMatricula, int start, int end)
        throws com.liferay.portal.SystemException {
        return getService()
                   .getOngoingEstagiosByProfessorMatricula(professorMatricula,
            start, end);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Estagio> getEstagiosByProfessorMatricula(
        java.lang.String professorMatricula, boolean somenteEmAndamento,
        int start, int end) throws com.liferay.portal.SystemException {
        return getService()
                   .getEstagiosByProfessorMatricula(professorMatricula,
            somenteEmAndamento, start, end);
    }

    public static int countOngoingEstagiosByProfessorMatricula(
        java.lang.String professorMatricula)
        throws com.liferay.portal.SystemException {
        return getService()
                   .countOngoingEstagiosByProfessorMatricula(professorMatricula);
    }

    public static int countEstagiosByProfessorMatricula(
        java.lang.String professorMatricula, boolean onlyOngoing)
        throws com.liferay.portal.SystemException {
        return getService()
                   .countEstagiosByProfessorMatricula(professorMatricula,
            onlyOngoing);
    }

    public static EstagioLocalService getService() {
        if (_service == null) {
            throw new RuntimeException("EstagioLocalService is not set");
        }

        return _service;
    }

    public void setService(EstagioLocalService service) {
        _service = service;
    }
}
